/*
 * @Description:
 *
 * @Author: XiongYaoYuan<xiongyaoyuan>
 * @Date: 2023-05-31 10:49:05
 * @FilePath: /yuxiuproweb/src/api/app/product.js
 */
import request from "@/utils/request";

// 查询app相关_商品;列表
export function listProduct(query) {
  return request({
    url: "/app/product/list",
    method: "get",
    params: query,
  });
}

// 查询app相关_商品;详细
export function getProduct(productId) {
  return request({
    url: "/app/product/" + productId,
    method: "get",
  });
}

// 新增app相关_商品;
export function addProduct(data) {
  return request({
    url: "/app/product",
    method: "post",
    data: data,
  });
}

// 修改app相关_商品;
export function updateProduct(data) {
  return request({
    url: "/app/product",
    method: "put",
    data: data,
  });
}

// 删除app相关_商品;
export function delProduct(productId) {
  return request({
    url: "/app/product/" + productId,
    method: "delete",
  });
}
